﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ModelLayer;

namespace CtrLayer
{
    public class CTROpskrift
    {
        private OpskriftModelContainer db;
        

        public CTROpskrift()
        {
            db = new OpskriftModelContainer();
            Opskrift opskrift = new Opskrift();
        }

        public Opskrift getOpskrift(int id)
        {
            Opskrift opskrift = (from o in db.OpskriftSet
                                 where o.opskrift_Id == id
                                 select o).Single();
            return opskrift;
        }

    }
}
